package com.demo.petshop.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author lenovo
 * @since 2025-06-09
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "products")
public class Products implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private Integer productId;

    private Integer storeId;

    private Integer categoryId;

    private String name;

    private String description;

    private Double price;

    private Double salePrice;

    private Integer stock;

    private String mainImage;

    private Double rating;

    private String createdAt;

}
